package models;

import java.util.ArrayList;
import java.util.Map;

public class Profile {
	private int id;
	private int ageMin;
	private int ageMax;
	private String gender;
	private String city;
	private String area;
	private String position;
	private ArrayList<String> studies;
	private ArrayList<String> requiredKnowledges;
	private ArrayList<Integer> requiredKnowledgesWeights;
	private ArrayList<String> requiredQualities;
	
	public ArrayList<String> getStudies() {
		return studies;
	}

	public void setStudies(ArrayList<String> studies) {
		this.studies = studies;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public String getArea() {
		return area;
	}

	public void setArea(String area) {
		this.area = area;
	}

	public String getPosition() {
		return position;
	}

	public void setPosition(String position) {
		this.position = position;
	}
	
	
	public ArrayList<Integer> getRequiredKnowledgesWeights(){
		return requiredKnowledgesWeights;
	}
	
	public void setRequiredKnowledgesWeights(ArrayList<Integer> requiredKnowledgesWeights){
		this.requiredKnowledgesWeights=requiredKnowledgesWeights;
	}
	
	public Profile() {
		super();
	}
	
	public Profile(int id, String area, String position, int ageMin, int ageMax, String gender, String city){
		this.setId(id);
		this.setArea(area);
		this.setPosition(position);
		this.setAgeMax(ageMax);
		this.setAgeMin(ageMin);
		this.setGender(gender);
		this.setCity(city);
		
	}


	public int getAgeMin() {
		return ageMin;
	}


	public void setAgeMin(int ageMin) {
		this.ageMin = ageMin;
	}


	public int getAgeMax() {
		return ageMax;
	}


	public void setAgeMax(int ageMax) {
		this.ageMax = ageMax;
	}


	public String getGender() {
		return gender;
	}


	public void setGender(String gender) {
		this.gender = gender;
	}


	public String getCity() {
		return city;
	}


	public void setCity(String city) {
		this.city = city;
	}


	public ArrayList<String> getRequiredKnowledges() {
		return requiredKnowledges;
	}


	public void setRequiredKnowledges(ArrayList<String> requiredKnowledges) {
		this.requiredKnowledges = requiredKnowledges;
	}


	public ArrayList<String> getRequiredQualities() {
		return requiredQualities;
	}


	public void setRequiredQualities(ArrayList<String> requiredQualities) {
		this.requiredQualities = requiredQualities;
	}
	
	public void guardarEnBase(){
		database.PerfilDB perfildb = new database.PerfilDB();
		perfildb.guardarEnBase(this);
	}
	
	public static ArrayList<Profile> obtenerPerfiles(){
		database.PerfilDB perfildb = new database.PerfilDB();
		return perfildb.obtenerPerfiles();
	}
	
	
	
}
